import { BasicLayout, BlankLayout, RouteView, PageView, UserLayout } from '@/layouts';
// import { BasicLayout, UserLayout } from '@/layouts';

import dashboard from './modules/dashboard';
import control_center from './modules/control_center';
import data_center from './modules/data_center';
import video from './modules/video';
import timing from './modules/timing';
import equipment from './modules/equipment';
import alert from './modules/alert';
import news from './modules/news';
import user from './modules/user';
import payment from './modules/payment';
import stock from './modules/stock';
import briefing from './modules/briefing';
// import screen from './modules/screen';


export const RoutersMap = [{
	path: '/',
	name: 'index',
	component: BasicLayout,
	meta: {
		title: '首页',
	},
	redirect: '/dashboard/workplace',
	children: [
		dashboard,
		control_center,
		data_center,
		video,
		timing,
		equipment,
		alert,
		briefing,
		news,
		user,
		payment,
		stock,
	],
},
{
	path: '/passport',
	component: UserLayout,
	redirect: '/passport/login',
	// hidden: true,
	children: [{
		path: 'login',
		name: 'login',
		component: () => import('@/views/passport/Login'),
	}],
},
{
	path: '/userRegister',
	name: 'userRegister',
	component: UserLayout,
	redirect: '/userRegister/Register',
	// hidden: true,
	children: [{
		path: 'Register',
		name: 'Register',
		component: () => import('@/views/passport/userRegister'),
	}],
},
{
	path: '/upForPassword',
	name: 'upForPassword',
	component: UserLayout,
	redirect: '/upForPassword/upForgetPassword',
	// hidden: true,
	children: [{
		path: 'upForgetPassword',
		name: 'upForgetPassword',
		component: () => import('@/views/passport/upForgetPassword'),
	}],
},
{
	path: '/screen',
	component: BlankLayout,
	redirect: '/screen',
	// hidden: true,
	children: [{
		path: '/screen/screen',
		name: 'screenForm',
		component: () => import('@/views/screen/screen'),
	},],
},
{
	path: '*',
	redirect: '/404',
	hidden: true,
},
];
